package com.zyx.mpdemo.service;

import com.zyx.mpdemo.model.entity.Course;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zyx.mpdemo.model.req.BatchLearnedReq;
import com.zyx.mpdemo.model.req.CourseDetailReq;
import com.zyx.mpdemo.model.req.CourseListReq;
import com.zyx.mpdemo.model.vo.CourseDetailVO;
import com.zyx.mpdemo.model.vo.CourseInfoVO;
import com.zyx.mpdemo.model.vo.CourseListVO;

import java.util.List;

/**
 * <p>针对表【t_course】的数据库操作Service</p>
 *
 * @author zhangyaxi
 * @since 2022-11-21 12:12
 */
public interface ICourseService extends IService<Course> {

    /**
     * 查询课程信息
     */
    List<CourseInfoVO> getCourseInfo();

    /**
     * 查询课程详情
     */
    List<CourseDetailVO> getCourseDetail(CourseDetailReq courseDetailReq);

    /**
     * 批量修改课程为已学完
     */
    void batchLearned(BatchLearnedReq batchLearnedReq);

    /**
     * 依据课程id查询课程列表
     */
    CourseListVO getCourseList(CourseListReq courseListReq);
}
